package ar.edu.unq.ts.components;

import java.awt.Color;

import ar.edu.unq.ts.components.abstracts.SightObserver;

import com.uqbar.vainilla.DeltaState;
import com.uqbar.vainilla.appearances.Circle;

    /***Gerarquia Shooter -> SightObserver -> CenterableComponent -> MovableComponent -> TSGameComponent -> GameComponent**/

public class Shooter extends SightObserver {
	public static final int DEFAULT_SIZE = 20;
	private Color color = Color.RED;
	private int diameter;

	public Shooter(double x, double y, int aDiameter) {
		super(x, y);
		this.diameter = aDiameter;
		this.setAppearance(new Circle(this.color, aDiameter));		
	}

	@Override
	public void update(DeltaState deltaState) {
		super.update(deltaState);
	}


	@Override
	public double getWidtht() {
		return diameter;
	}

	@Override
	public double getHeight() {
		return diameter;
	}
	
	public void move(double xx, double yy) {
		this.setX(this.getRealX() + xx);
		this.setY(this.getRealY() + yy);
	}

	@Override
	public void setSightAngle(double radianes) {
		
		
	}
	
	
}